# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=smenu
pkgver=0.9.15
pkgrel=0
pkgdesc="A standard input word picker"
url="https://github.com/p-gen/smenu"
arch="all"
license="GPL-2.0-only"
makedepends="ncurses-dev"
options="!check"  # tests seems to need full terminal to run
subpackages="$pkgname-doc"
source="https://github.com/p-gen/smenu/archive/v$pkgver/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="d553328902729abe43ab8fd30bdc306772a3d0ecf7ccc9eb631dc7b2199b17ab56642bd5799312056aad1040272ae0a24ae6ddd7ddbdf48010269836822d5a59  smenu-0.9.15.tar.gz"
